package club.haomoon.core.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;

/**
 * -------------------------
 * @Description: 系统角色实体
 * @Author: Wangjianwei
 * @Date: 2025/02/10 17:51
 * -------------------------
 */
@Data
@Schema(title = "系统角色实体")
public class SystemRoleData implements Serializable {

    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "ID")
    private Integer id;

   @Schema(title = "角色名称")
    private String name;

   @Schema(title = "描述")
    @TableField(value = "`desc`")
    private String desc;

   @Schema(title = "角色排序")
    private Integer sort;

   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;

   @Schema(title = "删除时间")
    private Long deleteTime;
}
